package com.ruoyi.report.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.report.domain.WalmartItemReport;
import com.ruoyi.report.service.WalmartItemReportService;
import com.ruoyi.report.mapper.WalmartItemReportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author Admin
* @description 针对表【walmart_item_report(商品报告表，包含产品详情和定价信息)】的数据库操作Service实现
* @createDate 2025-02-15 10:52:58
*/
@Service
public class WalmartItemReportServiceImpl extends ServiceImpl<WalmartItemReportMapper, WalmartItemReport>
    implements WalmartItemReportService{

	@Autowired
	private WalmartItemReportMapper walmartItemReportMapper;

	@Override
	public int insertBatch(List<WalmartItemReport> walmartItemReports) {
		return walmartItemReportMapper.insertBatch(walmartItemReports);
	}

	@Override
	public List<WalmartItemReport> selectWalmartReportItemByItemReportId(String requestId) {
		return walmartItemReportMapper.selectList(new LambdaQueryWrapper<>(WalmartItemReport.class)
				.eq(WalmartItemReport::getRequestId,requestId));
	}
}




